<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link href="main.css" rel="stylesheet" type="text/css"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
      <form action="search!incon.do" method="post">
      <table class="tableborder" cellspacing="1" cellpadding="4" width="98%" align="center">
      		<tr>
			   <td colspan="9" class="header">入库单查询</td>
			</tr>
			<tr>
				<td colspan="9" class="altbg1">
					选择查询条件：
					<select name="type">
					     <option value="billid" selected="selected">入库单编号</option>
					     <option value="goodsid">物品编号</option>
					     <option value="goodsname">物品名称</option>
					     <option value="trademark">牌号</option>
					     <option value="spec">规格</option>
					</select>
					<input type="text" name="value" maxlength="40"/>
					<input type="submit" value="查询" />&nbsp;&nbsp;&nbsp;
					<a href="inbill!init.do">返回</a>
				</td>
			</tr>
			<tr>
			    <td colspan="9" class="header">入库单列表</td>
			</tr>
			<tr class="altbg1" align="center">
			     <td width="10%">入库单编号</td>
				 <td width="10%">物品编号</td>
				 <td width="20%">物品名称</td>
				 <td width="10%">牌号</td>
				 <td width="10%">规格</td>
				 <td width="10%">数量</td>
				 <td width="10%">库房</td>
				 <td width="10%">日期</td>
			 </tr>
			<s:iterator value="pager.resultList">
			<tr class="altbg2" align="center">
			     <td><s:property value="billid"/></td>
				 <td><s:property value="goodsid"/></td>
				 <td><s:property value="goodsname"/></td>
				 <td><s:property value="trademark"/></td>
				 <td><s:property value="spec"/></td>
				 <td><s:property value="quanlity"/></td>
				 <td><s:property value="depottype"/></td>
				 <td><s:property value="date"/></td>
			 </tr>
			 </s:iterator>
		  </table>
		  </form>
		  
	<s:form action="inbill!list.do" method="post" name="form1">	
		<table border="0" width="100%" class="pager">
			<tr>
				<td align="left">每页记录数：
					<s:select name="pageSize" key="pager.pageSize" list="pager.pageSizeIndexs" value="pager.pageSize" onchange="document.all.pageNo.value='1';document.all.form1.submit();"/>
				</td>
				<td align="center">
				总记录数：<s:property value="pager.rowCount" />
				</td>
				<td align="right">
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.firstPageNo" />';document.all.form1.submit();">首页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.prePageNo" />';document.all.form1.submit();">前一页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.nextPageNo" />';document.all.form1.submit();">后一页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.lastPageNo" />';document.all.form1.submit();">尾页</a>
					<s:select name="pageNo" list="pager.pageNoIndexs" value="pager.pageNo" onchange="document.all.form1.submit();"/>
				</td>
				<td width="20"></td>
			</tr>
		</table>
	</s:form>
	</body>
</html>